#ifndef WIN_INPUT_H
#define WIN_INPUT_H


#ifndef DIRECTINPUT_VERSION
#define DIRECTINPUT_VERSION   0x0800
#endif

#include <dinput.h>

class WinInput 
{
	public:
		WinInput();
		~WinInput();
		void Destroy(); 
		
		HRESULT Create(HINSTANCE Instance, HWND hWnd); 
		HRESULT Update();

		DIJOYSTATE2 JoyState;
		char KeyState[256];
		int JoyMax,JoyMin;

	protected:
		LPDIRECTINPUT8  m_pDI; 
		LPDIRECTINPUTDEVICE8 m_pJoystick;     
		LPDIRECTINPUTDEVICE8 m_pKeyboard;     
		DIDEVCAPS m_diDevCaps;

};

#endif